<h1>用户列表</h1>
<table class="easyui-datagrid list-table" style="width: 620px;height:auto;">
  <thead>
    <tr>
      <th field="sid" width="110" align="center">SID</th>
      <th field="name" width="110" align="center">姓名</th>
      <th field="usertype" width="110" align="center">用户类型</th>
      <th field="operation" width="240" align="center">操作</th>
    </tr>
  </thead>
  <tbody>
    <% @users.each do |user| %>
      <tr>
        <td><%= user.sid %></td>
        <td><%= user.name %></td>
        <td><%= user.user_type%></td>
        <td><%= link_to "删除", :action=>'destroy', :id=>user %>  | <%= link_to "编辑", {:action => 'edit',:id=> user }%> </td> 
      </tr>
    <% end %>
  </tbody>
</table>
